package com.currency.mall.adapter;

import android.content.Context;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.currency.mall.R;
import com.currency.mall.entity.WalletAddress;

import java.util.List;

/**
 * Created by Administrator on 2018/12/5.
 */

public class CommonAddressAdapter extends BaseQuickAdapter<WalletAddress, BaseViewHolder> {

    public CommonAddressAdapter(@Nullable List<WalletAddress> data, Context context) {
        super(R.layout.item_common_address, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, WalletAddress walletAddress) {
        helper.addOnClickListener(R.id.tv_del);
        helper.setText(R.id.tv_wallte_address,walletAddress.getAdAddress());
        helper.setText(R.id.tv_bz,walletAddress.getAdRemark());


    }

}
